import java.util.Arrays;

public class demo {

    public int maxProfit(int[] prices) {
        //将每一天的价格和后面的作差，找出最大利息

        int min = 10000;
        int max = 0;
        int len = prices.length;
        //
        for(int i = 0;i < len; i++)
        {
            min = Math.min(prices[i],min);
            max = Math.max(prices[i]-min,max);
        }
        return max;
    }
    public static void main(String[] args) {
        int[] array = new int[]{1,5,6,2,4,1,8,4,2,3};
       /* Arrays.sort(array);

        System.out.println(array[4]);*/
        System.out.println("中午");
    }
}
